package cn.hjd.query;

public class ApproveListQuery {
	private Integer currentPage = 1;//当前页，默认第一页，用户肯定火翻页
	private Integer pageSize = 6;//每页条数，默认等于10 ，用户可能会自己指定页面
	private String keyword="";
	
	//计算起始索引
	public Integer getBeginIdex() {
		return (this.currentPage - 1) * this.pageSize;
		
	}

	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	
	
	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	@Override
	public String toString() {
		return "ApproveListQuery [currentPage=" + currentPage + ", pageSize="
				+ pageSize + ", keyword=" + keyword + "]";
	}

	
	
	
}
